﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaseExtender.aspx.cs" Inherits="Charpter1.Charpter1.BaseExtender" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function pageLoad() {
            var a = ['m1', 'm2'];
            Array.add(a, 'm3');
            document.write("array lenght = \r\n" + a.length + "element:");
            var d = ['dd', 'ddd'];
            Array.add(a, d);
            for (var i = 0; i < a.length; i++) {
                document.write(a[i] + ",");
            }
            var temp;
            temp = Array.clone(a);
            // clone and clear and contains
            document.writeln(temp.length);
            Array.clear(temp);
            document.writeln(temp.length);
            document.writeln(Array.contains(temp, 'dd'));
            // push and pop()
            var a = [];
            a.push('d');
            a.push('s');
            document.writeln(a.pop());
            // shift()
            var b = [];
            b.push('1');
            b.push('2');
            b.push('3');
            document.writeln(b.shift());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    </div>
    </form>
</body>
</html>
